import os
import re
import glob
 
def find(src):
    root = os.path.join(src, '/**/*.cpp')
    p = re.compile(r'[(](.*?)[,]', re.S)
    for filename in glob.iglob(root, recursive=True):
        with open(filename, 'r') as f:
            for line in f:
                if 'PYBIND11_MODULE' in line:
                    return re.findall(p, line)[0]